import { request } from "@/utils/request";

export const getToken = () => {
  return request({
    data: {
      mod: 'system',
      act: 'get_token',
    }
  });
}

export const tokenLogin = (data = {}) => {
  return request({
    data: {
      mod: 'account',
      act: 'token_login',
      agent: 4,
      ...data
    }
  });
};

export const getCfg = () => {
  return request({
    data: {
      mod: 'system',
      act: 'get_cfg',
    }
  });
}